package org.example.ch01;

import java.util.Random;

/**
 * @author yang
 * @date 2024-03-18
 */
public class MyThread extends Thread {
    @Override
    public void run() {
        int red = new Random().nextInt(256);
        int green = new Random().nextInt(256);
        int blue = new Random().nextInt(256);
        String color = "MyThread:rgb("+red+","+green+","+blue+")";
        System.out.println(color);
    }
}
